package edu.whut.mall.admin.vo;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @ClassName ProductImageVo
 * @Description
 * @Author lvfanbing
 * @Date 2020-10-24 17:05
 * @Version 1.0
 */
public class ProductImageVo {
    private Long id;

    /**
     * 商品id
     */
    private Long productId;

    /**
     * 图片地址
     */
    private String imageUrl;

    /**
     * 是否主图
     */
    private Integer isMain;

    /**
     * 图片排序
     */
    private Integer sort;

    public void setId(Long id) {
        this.id = id;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public void setIsMain(Integer isMain) {
        this.isMain = isMain;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getId() {
        return id;
    }

    public Long getProductId() {
        return productId;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public Integer getIsMain() {
        return isMain;
    }

    public Integer getSort() {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("id", id)
                .append("productId", productId)
                .append("imageUrl", imageUrl)
                .append("isMain", isMain)
                .append("sort", sort)
                .toString();
    }
}
